The persistent classes aim to make data persistence easy Persistent類旨在使數據持久性變得簡單。
Look at the home page of the persistent classes see 有關文檔和示例,請參閱persistent類主頁(請參閱
Inheriting from persistent classes 從persistent類繼承
The cpan persistent classes are powerful allies in your search for data persistence solutions Cpan persistent類是您搜索數據持久性解決方案時的有力幫手。
With experience , you may find that the best way to use persistent classes is to inherit from them 通過使用,您將發現,使用persistent類的最好方法是繼承它們。
See " inheriting from persistent classes " for a way to isolate programs from the database choice by using inheritance 有關通過使用繼承來將程序與數據庫選項隔離的方法,請參閱
In the persistent classes , the datastore is an abstract storage device , which can be a file or a database , for example 在persistent類中,數據存儲器是抽象存儲設備,例如,它可以是文件或數據庫。
By dave winters , has additional information about the persistent classes on this page , which you can also find on the cpan search page 上有關于persistent類的詳細信息,也可以在cpan搜索頁上找到。
Remember that good design and a clear definition of the attributes are just as important as the persistent classes in achieving successful data persistence 請記住,在實現成功的數據持久性時,好的設計和屬性的清晰定義與persistent類同等重要。
The table must match the definition of your attributes ; for example , the primary database key for the equations table must be the primary key of the persistent class as well 表必需與屬性定義匹配,例如,等式表的主數據庫鍵必須也是persistent類的主鍵。